<template>
	<!-- 邀请店员 -->
	<view class="inviteClerk">
		<image :src="'data:image/png;base64,' + imageUrl" mode="widthFix" style="width: 500rpx;"></image>
		<text class="title">扫一扫，邀请店员</text>
	</view>
</template>

<script>
import { storeStaffInvite } from '../../../api/flashManage/index.js';
export default {
	data() {
		return {
			storeType: '',
			imageUrl:""
		};
	},
	onLoad() {
		this.storeType = this.$store.state.storeType;
		this.getstoreStaffInvite();
	},
	methods: {
		async getstoreStaffInvite() {
			try {
				const resData = await storeStaffInvite({
					type: this.storeType
				});
				this.imageUrl = resData.data.img;
			} catch (e) {
				throw Error(e);
			}
		}
	}
};
</script>

<style>
	page{
		background-color: #fff;
	}
</style>

<style scoped lang="scss">
	.inviteClerk{
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		box-sizing: border-box;
		padding: 30rpx;
		.title{
			font-size: 26rpx;
			display: inline-block;
			margin: 20rpx;
			color: #999;
		}
	}
</style>
